package com.qingneng.web;

import java.util.List;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.Action;
import com.qingneng.service.sdk.IProjectInfoService;
import com.qingneng.vo.ProjectWorkInfo;
import com.tbfs.common.BaseAction;

public class LoadProWorkDetailAction extends BaseAction{

	private static final Logger logger = Logger
	.getLogger(LoadProWorkDetailAction.class);

	public ProjectWorkInfo projectWorkInfo ;
	
	

	public ProjectWorkInfo getProjectWorkInfo() {
		return projectWorkInfo;
	}

	public void setProjectWorkInfo(ProjectWorkInfo projectWorkInfo) {
		this.projectWorkInfo = projectWorkInfo;
	}

	public List getRows() {
		return rows;
	}

	public void setRows(List rows) {
		this.rows = rows;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	private List rows = null;

	private Integer total;
	
	private IProjectInfoService projectInfoService = null;
	

	public LoadProWorkDetailAction(IProjectInfoService projectInfoService) {
		this.projectInfoService = projectInfoService;
	}

	public LoadProWorkDetailAction() {
	}
	

	public String execute() {
		if(logger.isDebugEnabled()){
			logger.debug("+++ begin to loadChildData +++ ");
		}
		try {
			int project_id = projectWorkInfo.getProjectinfo_id();
			logger.info("project_id::"+project_id);
			rows = projectInfoService.getProjectWorkInfo(project_id);
			total = Integer.valueOf(1000000);
		} catch (Exception e) {
			e.printStackTrace();
		}
		if(logger.isDebugEnabled()){
			logger.debug("+++ end to loadChildData +++ ");
		}
		return Action.SUCCESS;
	}

	
	
}
